import request from '@/utils/request'

// 查询减分列表
export function listDeduction(query) {
  return request({
    url: '/gxs/deduction/list',
    method: 'get',
    params: query
  })
}

// 查询减分详细
export function getDeduction(gxsId) {
  return request({
    url: '/gxs/deduction/' + gxsId,
    method: 'get'
  })
}

// 新增减分
export function addDeduction(data) {
  return request({
    url: '/gxs/deduction',
    method: 'post',
    data: data
  })
}

// 修改减分
export function updateDeduction(data) {
  return request({
    url: '/gxs/deduction',
    method: 'put',
    data: data
  })
}

// 删除减分
export function delDeduction(gxsId) {
  return request({
    url: '/gxs/deduction/' + gxsId,
    method: 'delete'
  })
}


// 查询我的减分列表
export function MyList(query) {
  return request({
    url: '/gxs/deduction/MyList',
    method: 'get',
    params: query
  })
}


// 查询减分列表
export function chartList(query) {
  return request({
    url: '/gxs/deduction/chartList',
    method: 'get',
    params: query
  })
}
